<!-- inclure l'entete de la page -->
<%@ include file="../../outils/adminentete.jspf" %>
	
	<form action="<b:config attribut="urlApplication"/>admin/finaliserajoutermodifier_Article.action" method="POST">
		
		<s:hidden id="article.idArticle" name="article.idArticle" value="%{#session.article.idArticle}"/>
				
		<!-- Nouvelle information de ce formulaire : nom de la vignette et de la photo -->
		<s:if test="#request.image!=''">
			<s:hidden id="photoarticle" name="photoarticle" value="%{#request.image}"/>
		</s:if>
		<s:else>
			<input id="photoarticle" name="photoarticle" type="hidden" value="<b:config attribut="photoParDefaut"/>" />
		</s:else>
		<s:if test="#request.vignette!=null">
			<s:hidden id="vignettearticle" name="vignettearticle" value="%{#request.vignette}"/>
		</s:if>
		<s:else>
			<input id="vignettearticle" name="vignettearticle" type="hidden" value="<b:config attribut="vignetteParDefaut"/>" />
		</s:else>
			
		
		<div id="image_article" align="center">
			<table cellspacing="4" cellpadding="0" id="tableau" width="520px">
				<tr>
					<td align="center" width="260px">Photo </td>
					<td align="center" width="260px">Vignette</td>
				</tr>
				<tr>
					<td align="center" width="260px">
						<div id="image">
						<s:if test="#request.image!=''">
							<img src="<b:config attribut="urlApplication"/>images/articles/<c:out value="${image}"/>" />
						</s:if>
						<s:else>
							<img src="<b:config attribut="urlApplication"/>images/articles/<b:config attribut="photoParDefaut"/>" />
						</s:else>
						</div>
					</td>
					<td align="center" width="260px">
						<div id="vignette"> 
						<s:if test="#request.vignette!=''">
							<img src="<b:config attribut="urlApplication"/>images/articles/<c:out value="${vignette}"/>" />
						</s:if>
						<s:else>
							<img src="<b:config attribut="urlApplication"/>images/articles/<b:config attribut="vignetteParDefaut"/>" />
						</s:else>
						</div>
					</td>
				</tr>
				<tr height="30px">
					<td colspan="2" align="center" >
						<input type="image" title="Enregistrer cet article" src="<b:config attribut="urlApplication"/>images/application/enregistrer.gif" />
					</td>
				</tr>
			</table>
		</div>
	</form>
	
<%@ include file="../../outils/adminpiedpage.jspf" %>